package finalfinancialanalyst.business;

import java.io.Serializable;
import java.math.BigDecimal;

public class Currency  implements Serializable{
    
        private static final long serialVersionUID = 1L;
 
	private String name;
	 
	private BigDecimal usdValue;
	 
	private String symbol;
	 
	public Currency() {
            this("New currency",BigDecimal.ONE,"N€w");
	}
        
        public Currency(String name, BigDecimal usdValue, String symbol) {
            this.name = name;
            this.usdValue = usdValue;
            this.symbol = symbol;
        }
	 
	public String getName() {
		return name;
	}
	 
	public BigDecimal getUsdValue() {
		return usdValue;
	}
	 
	public String getSymbol() {
		return symbol;
	}
	 
	public void setName(String name) {
            this.name = name;          
	 
	}
	 
	public void setUsdValue(BigDecimal value) {
            this.usdValue = value;
	 
	}
	 
	public void setSymbol(String symbol) {
            this.symbol = symbol;
	 
	}
        
    @Override
        public String toString() {
           return name + " (" + symbol + ")"; 
        }
	 
}
 
